﻿<%@ Page Title="adverts" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeBehind="List.aspx.cs" Inherits="lcmyjobs.Web.adverts.List" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
 <script src="../../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="../../Scripts/mybasic.js" type="text/javascript"></script>
     <link href="../../css/AdminFrame.css" rel="stylesheet" type="text/css" />
     <style>
         .grid{ border-bottom:1px solid; margin-top:10px;}
         
         table.grid td{ color: #353535; }
              
         table.grid td,th{ border-collapse: collapse;border:solid 1px #d2f5ff;font-size:12px;padding:5px 0 5px 10px; }

         table.grid th { border-bottom:1px solid #d2f5ff;border-top:1px solid #d2f5ff;}

         .advpic{ margin:2px;}
         
     </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div class="rightCenter">
        <div class="rightBack">
           <div class="rightContentTop">
                <ul>
                    <li >
                        <a href="Add.aspx" >广告增加</a>
                    </li>
                    <li class="cur">
                        <a href="List.aspx" >广告管理</a>
                    </li>
                 
                    
                </ul>
           </div>
           <div class="rightContentMiddle" style=" height:auto;">
<!--Title -->

            <!--Title end -->

            <!--Add  -->

            <!--Add end -->

            <!--Search -->
            <table style="width: 100%;" cellpadding="2" cellspacing="1" class="border">
                <tr>

                    <td class="tdbg">                       
	    <asp:DropDownList ID="ddllocation" runat="server">
            <asp:ListItem Selected="True" Value="100">全部</asp:ListItem>
            <asp:ListItem Value="0">首页上中位</asp:ListItem>
            <asp:ListItem Value="1">首页中上1行位</asp:ListItem>
            <asp:ListItem Value="2">首页中上2行左1/4</asp:ListItem>
            <asp:ListItem Value="3">首页中上2行左2/4</asp:ListItem>
            <asp:ListItem Value="4">首页中上2行左3/4</asp:ListItem>
            <asp:ListItem Value="5">首页中上2行左4/4</asp:ListItem>
            <asp:ListItem Value="6">首页中上3行左1/5</asp:ListItem>
            <asp:ListItem Value="7">首页中上3行左2/5</asp:ListItem>
            <asp:ListItem Value="8">首页中上3行左3/5</asp:ListItem>
            <asp:ListItem Value="9">首页中上3行左4/5</asp:ListItem>
            <asp:ListItem Value="10">首页中上3行左5/5</asp:ListItem>
            <asp:ListItem Value="11">首页中上4行左1/5</asp:ListItem>
            <asp:ListItem Value="12">首页中上4行左2/5</asp:ListItem>
            <asp:ListItem Value="13">首页中上4行左3/5</asp:ListItem>
            <asp:ListItem Value="14">首页中上4行左4/5</asp:ListItem>
            <asp:ListItem Value="15">首页中上4行左5/5</asp:ListItem>
            <asp:ListItem Value="16">求职中心首页上1行位</asp:ListItem>
            <asp:ListItem Value="17">求职中心首页上2行左1/4</asp:ListItem>
            <asp:ListItem Value="18">求职中心首页上2行左2/4</asp:ListItem>
            <asp:ListItem Value="19">求职中心首页上2行左3/4</asp:ListItem>
            <asp:ListItem Value="20">求职中心首页上2行左4/4</asp:ListItem>
            <asp:ListItem Value="21">求职中心首页上3行左1/4</asp:ListItem>
            <asp:ListItem Value="22">求职中心首页上3行左2/4</asp:ListItem>
            <asp:ListItem Value="23">求职中心首页上3行左3/4</asp:ListItem>
            <asp:ListItem Value="24">求职中心首页上3行左4/4</asp:ListItem>
            <asp:ListItem Value="25">招聘中心首页上位</asp:ListItem>
            <asp:ListItem Value="26">单位介绍左位</asp:ListItem>
            <asp:ListItem Value="27">猎头服务首页中位</asp:ListItem>
            <asp:ListItem Value="28">悬赏招聘&bull;悬赏求职首页中位</asp:ListItem>
            <asp:ListItem Value="29">个人管理中心上位</asp:ListItem>
            <asp:ListItem Value="30">单位管理中心上位</asp:ListItem>
            <asp:ListItem Value="31">在校生&bull;应届生首页中上左1/6</asp:ListItem>
            <asp:ListItem Value="32">在校生&bull;应届生首页中上左2/6</asp:ListItem>
            <asp:ListItem Value="33">在校生&bull;应届生首页中上左3/6</asp:ListItem>
            <asp:ListItem Value="34">在校生&bull;应届生首页中上左4/6</asp:ListItem>
            <asp:ListItem Value="35">在校生&bull;应届生首页中上左5/6</asp:ListItem>
            <asp:ListItem Value="36">在校生&bull;应届生首页中上左6/6</asp:ListItem>
            <asp:ListItem Value="37">在校生&bull;应届生首页中中左1/6</asp:ListItem>
            <asp:ListItem Value="38">在校生&bull;应届生首页中中左2/6</asp:ListItem>
            <asp:ListItem Value="39">在校生&bull;应届生首页中中左3/6</asp:ListItem>
            <asp:ListItem Value="40">在校生&bull;应届生首页中中左4/6</asp:ListItem>
            <asp:ListItem Value="41">在校生&bull;应届生首页中中左5/6</asp:ListItem>
            <asp:ListItem Value="42">在校生&bull;应届生首页中中左6/6</asp:ListItem>
            <asp:ListItem Value="43">在校生&bull;应届生首页中下左1/6</asp:ListItem>
            <asp:ListItem Value="44">在校生&bull;应届生首页中下左2/6</asp:ListItem>
            <asp:ListItem Value="45">在校生&bull;应届生首页中下左3/6</asp:ListItem>
            <asp:ListItem Value="46">在校生&bull;应届生首页中下左4/6</asp:ListItem>
            <asp:ListItem Value="47">在校生&bull;应届生首页中下左5/6</asp:ListItem>
            <asp:ListItem Value="48">在校生&bull;应届生首页中下左6/6</asp:ListItem>
        </asp:DropDownList>
                    &nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Button ID="btnSearch" runat="server" Text="查询"  OnClick="btnSearch_Click" >
                    </asp:Button>                    
                        
                    </td>

                </tr>
            </table>
            <!--Search end-->

            <asp:GridView ID="gridView" runat="server" BorderStyle="None"
                    Width="100%"  OnPageIndexChanging ="gridView_PageIndexChanging"
                     DataKeyNames="aid" OnRowDataBound="gridView_RowDataBound" OnRowCommand="GridView1_RowCommand"
                    AutoGenerateColumns="False"  RowStyle-HorizontalAlign="Center" 
                    OnRowCreated="gridView_OnRowCreated" EnableModelValidation="True" CssClass="grid" PageSize="15" >
                    <Columns>
                    <asp:TemplateField HeaderText="广告位置" SortExpression="locationid" >
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" Text='<%# getLocationById(Eval("locationid").ToString()) %>'></asp:Label>
                        </ItemTemplate>

                        <ItemStyle HorizontalAlign="Left" Width="150px"  />
                        <HeaderStyle HorizontalAlign="Left" Width="150px"   />
                    </asp:TemplateField>
		            <asp:TemplateField HeaderText="图片">
                        <ItemTemplate>
                            <asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("pics") %>'  CssClass="advpic" />
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" Width="300px"  />
                        <HeaderStyle  />
                    </asp:TemplateField>
                    <asp:TemplateField  HeaderText="公司名称"    >
                        <ItemTemplate>
                            <asp:Label ID="lblname" runat="server" Text='<%# Eval("companyname") %>'></asp:Label>
                        </ItemTemplate>
                        <HeaderStyle HorizontalAlign="Left" Width="150px"  />
                        <ItemStyle  CssClass="tdleftmargin" HorizontalAlign="Left"  />
                    </asp:TemplateField> 
            		<asp:BoundField DataField="alink" HeaderText="连接" SortExpression="alink" ItemStyle-HorizontalAlign="Left" > 
                        <ItemStyle HorizontalAlign="Left" Width="150px" ></ItemStyle>
                        <HeaderStyle  HorizontalAlign="Left" />
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="操作">
                        <ItemTemplate>
                            <asp:LinkButton ID="lbn_display" runat="server" CommandArgument='<%# Bind("aid") %>' 
                                CommandName="lbn_display"  Text='<%# lcmyjobs.BLL.Tools.selectdisplay( Eval("islocdisplay").ToString() ) %>'>
                            </asp:LinkButton>
                            &nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:HyperLink ID="hy_edit" runat="server" NavigateUrl='<%# "Addpic.aspx?id=" + Eval("aid").ToString() %>' Text="编辑" >
                            </asp:HyperLink>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" Width="100px" ></ItemStyle>
                        <HeaderStyle  />
                    </asp:TemplateField>
                            

                        </Columns>

                    <PagerSettings FirstPageText="第一页" LastPageText="最后一页" 
                        Mode="NumericFirstLast" NextPageText="下一页  " PreviousPageText="上一页   " 
                        PageButtonCount="4" />

                    <PagerStyle Font-Bold="True" Font-Size="12pt" HorizontalAlign="Center" />

                    <RowStyle HorizontalAlign="Center"></RowStyle>
                </asp:GridView>
               <table border="0" cellpadding="0" cellspacing="1" style="width: 100%;">
                <tr>
                    <td style="width: 1px;">                        
                    </td>
                    <td >
                    <div style=" margin:0 auto; width:150px;">
                        <asp:Button ID="btnDelete" runat="server" Text="删除" OnClick="btnDelete_Click" CssClass="bgbtn" Visible="false"/>     
                        </div>                  
                    </td>
                </tr>
            </table>
            </div></div></div>
</asp:Content>
<%--<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceCheckright" runat="server">
</asp:Content>--%>
